# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=broot
pkgver=0.19.4
pkgrel=0
pkgdesc="New way to see and navigate directory trees"
url="https://github.com/Canop/broot"
arch="all !s390x !mips !mips64" # blocked by cargo
license="MIT"
makedepends="cargo"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/broot/$pkgver/download"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm0755 target/release/broot "$pkgdir"/usr/bin/broot
	install -Dm0644 man/page "$pkgdir"/usr/share/man/man1/broot.1
}

sha512sums="eb79e83136389309054737ced990e75948e390a3e5844664e0a35f92a30fe7e61c9778436f4721a83ca44adb5785776f395311d6a027c7ff2932a85b896b1090  broot-0.19.4.tar.gz"
